package com.example.workshop.lesson4;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RecommenderImplementation {
   @Autowired
    private Filter f;

    public RecommenderImplementation(Filter f) {
        super();
        this.f = f;
    }

    public String [] recommendMovies(String movie){
        System.out.println("打印正在使用的Filter是："+f+"\n");
       String result[]= f.getRecommendations("流浪地球");
       return result;
    }
}
